package com.enums;

//模块url对应
public enum SysModuleEnum {

	InquiryResult("询价结果", "purchase/result"), visa("思派工程签证", "contractor/visa");

	private String name = "";

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	private String value = "";

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	SysModuleEnum(String name, String value) {
		this.name = name;
		this.value = value;
	}

	public static String getEnumValue(String name) {
		String valueString = "";
		for (SysModuleEnum e : SysModuleEnum.values()) {
			if (e.getName().equals(name)) {
				valueString = e.getValue();
			}
		}
		return valueString;
	}

	public static String getEnumName(String value) {
		String valueString = "";
		for (TmPlanStatusEnum e : TmPlanStatusEnum.values()) {
			if (e.getValue().equals(value)) {
				valueString = e.getName();
			}
		}
		return valueString;
	}

}
